package com.zjw.zy.coreui.fragment.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.zjw.zy.R
import com.zjw.zy.base.BaseRecyclerAdapter
import com.zjw.zy.bean.Tip
import com.zjw.zy.coreui.fragment.holder.TipHolder

/**
 * @author     ：zhong.jw
 * @date       ：Created in 2022/11/2 13:29
 * @description：
 */
class TipListAdapter(listener: ItemListener<TipHolder>) :
    BaseRecyclerAdapter<Tip, TipHolder>(listener) {
    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): TipHolder {
        val itemView = LayoutInflater.from(parent.context)
            .inflate(R.layout.holder_tip_item, parent, false)
        return TipHolder(itemView)
    }
}